﻿using LocationTrackingService.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace LocationTrackingService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface ITrackingService
    {
        [OperationContract]
        string GetData(string value);
       // TODO: Add your service operations here
        [OperationContract]
        TrackingResponse RegisterUser(User user);
        [OperationContract]
        bool ValidateUser(string userName, string pin);
        [OperationContract]
        bool ValidatePasswordUser(string userName, string password);
        [OperationContract]
        bool AddLocation(Location location);
        [OperationContract]
        User[] GetUsers();
        [OperationContract]
        Location[] GetUserLocationHistory(string username);
        [OperationContract]
        Location GetLastLocation(string username);
    }
}
